module.exports = {
  msg: (title, duration=1500, mask=false, icon='none')=>{
    //统一提示方便全局修改
    if(Boolean(title) === false){
      return;
    }
    uni.showToast({
      title,
      duration,
      mask,
      icon
    });
  },
  
  prePage: ()=>{
    let pages = getCurrentPages();
    let prePage = pages[pages.length - 2];
    // #ifdef H5
    return prePage;
    // #endif
    return prePage.$vm;
  },
  
};